﻿using System;
using System.Collections.Generic;

namespace Model
{
     ///<summary>
     ///实体类DATA_DB_VERSION
     ///</summary>
     public class DATA_DB_VERSION
     {
         private int __ID=0 ;
         private int? __DB_TYPE=null ;
         private string __DB_NOW_VERSION=string.Empty ;
         private string __DB_SETUP_PERSON=string.Empty ;
         private string __DB_SETUP_CON=string.Empty ;
         private string __DB_SETUP_DATE=string.Empty ;
         private string __DB_COMPANY_NAME=string.Empty ;
         private string __REMARK=string.Empty ;

         private Dictionary<string, bool> __Changed = new Dictionary<string, bool>();


         public DATA_DB_VERSION()
         {
             this.__Changed.Add("ID",false);
             this.__Changed.Add("DB_TYPE",false);
             this.__Changed.Add("DB_NOW_VERSION",false);
             this.__Changed.Add("DB_SETUP_PERSON",false);
             this.__Changed.Add("DB_SETUP_CON",false);
             this.__Changed.Add("DB_SETUP_DATE",false);
             this.__Changed.Add("DB_COMPANY_NAME",false);
             this.__Changed.Add("REMARK",false);
         }

         /// <summary>
         /// 将类重置到初始化状态
         /// </summary>
         public void Reset()
         {
             this.__ID =0;
             this.__DB_TYPE =null;
             this.__DB_NOW_VERSION =string.Empty;
             this.__DB_SETUP_PERSON =string.Empty;
             this.__DB_SETUP_CON =string.Empty;
             this.__DB_SETUP_DATE =string.Empty;
             this.__DB_COMPANY_NAME =string.Empty;
             this.__REMARK =string.Empty;
             this.__Changed["ID"] = false;
             this.__Changed["DB_TYPE"] = false;
             this.__Changed["DB_NOW_VERSION"] = false;
             this.__Changed["DB_SETUP_PERSON"] = false;
             this.__Changed["DB_SETUP_CON"] = false;
             this.__Changed["DB_SETUP_DATE"] = false;
             this.__Changed["DB_COMPANY_NAME"] = false;
             this.__Changed["REMARK"] = false;
         }

         /// <summary>
         /// 获取类中成员的改变状态
         /// </summary>
         public bool Changed(string strKey)
         {
             return __Changed[strKey];
         }

         /// <summary>
         ///设置或获取类中的[ID]的数据
         /// </summary>
         public int ID
         {
              set{ __ID = value; __Changed["ID"] = true;}
              get{return __ID;}
         }
         /// <summary>
         ///设置或获取类中的[DB_TYPE]的数据
         /// </summary>
         public int? DB_TYPE
         {
              set{ __DB_TYPE = value; __Changed["DB_TYPE"] = true;}
              get{return __DB_TYPE;}
         }
         /// <summary>
         ///设置或获取类中的[DB_NOW_VERSION]的数据
         /// </summary>
         public string DB_NOW_VERSION
         {
              set{ __DB_NOW_VERSION = value.Replace("'","’"); __Changed["DB_NOW_VERSION"] = true;}
              get{return __DB_NOW_VERSION;}
         }
         /// <summary>
         ///设置或获取类中的[DB_SETUP_PERSON]的数据
         /// </summary>
         public string DB_SETUP_PERSON
         {
              set{ __DB_SETUP_PERSON = value.Replace("'","’"); __Changed["DB_SETUP_PERSON"] = true;}
              get{return __DB_SETUP_PERSON;}
         }
         /// <summary>
         ///设置或获取类中的[DB_SETUP_CON]的数据
         /// </summary>
         public string DB_SETUP_CON
         {
              set{ __DB_SETUP_CON = value.Replace("'","’"); __Changed["DB_SETUP_CON"] = true;}
              get{return __DB_SETUP_CON;}
         }
         /// <summary>
         ///设置或获取类中的[DB_SETUP_DATE]的数据
         /// </summary>
         public string DB_SETUP_DATE
         {
              set{ __DB_SETUP_DATE = value.Replace("'","’"); __Changed["DB_SETUP_DATE"] = true;}
              get{return __DB_SETUP_DATE;}
         }
         /// <summary>
         ///设置或获取类中的[DB_COMPANY_NAME]的数据
         /// </summary>
         public string DB_COMPANY_NAME
         {
              set{ __DB_COMPANY_NAME = value.Replace("'","’"); __Changed["DB_COMPANY_NAME"] = true;}
              get{return __DB_COMPANY_NAME;}
         }
         /// <summary>
         ///设置或获取类中的[REMARK]的数据
         /// </summary>
         public string REMARK
         {
              set{ __REMARK = value.Replace("'","’"); __Changed["REMARK"] = true;}
              get{return __REMARK;}
         }
    }
}
